package com.djakapm.swing.component.textarea;

import javax.swing.*;
import java.awt.*;

public class TextAreaScrollPane extends JScrollPane{

   public TextAreaScrollPane(){
       super();
       this.setWheelScrollingEnabled(true);
       this.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
       this.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
       this.getVerticalScrollBar().setUnitIncrement(100);
       this.getHorizontalScrollBar().setUnitIncrement(100);
   }
    
}
